package com.heima.dynamic_sql.controller;

import com.heima.dynamic_sql.dto.CheckItemGroupRefDTO;
import com.heima.dynamic_sql.mapper.CheckGroupMapper;
import com.heima.dynamic_sql.service.CheckGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @Auth: zhuan
 * @Desc: 检查组管理控制器
 */
@RestController
@RequestMapping("/checkgroup")
public class CheckGroupController {

    @Autowired
    private CheckGroupService checkGroupService;
    /**
     * 功能描述: 检查组-检查项，关联关系批量插入
     *
     * @return : java.lang.String
     */
    @GetMapping("/insertBatch")
    public String insertBatch(){
        /*List<CheckItemGroupRefDTO> params = new ArrayList<>();
        params.add(new CheckItemGroupRefDTO(5,28));
        params.add(new CheckItemGroupRefDTO(5,29));
        params.add(new CheckItemGroupRefDTO(5,30));
        params.add(new CheckItemGroupRefDTO(5,31));
        checkGroupService.insertBatch(params);*/
        return "批量插入成功";
    }
}
